/******************************************************************
 *
 *    tenant, Powered By uyun.cn.
 *
 *    Copyright (c) 2001-2020
 *    https://uyun.cn
 *
 *    Package:     wzg.com
 *
 *    Filename:    DealThreadTest
 *
 *    Description: (用一句话描述该文件做什么)
 *
 *    Copyright:   Copyright (c) 2001-2020
 *
 *    Company:     uyun.cn
 *
 *    @author: 王志刚
 *
 *    @version: 1.0.0
 *
 *    Create at:   2018-01-02 下午4:48
 *
 *    Revision:
 *
 *    2018-01-02 下午4:48
 *        - first revision
 *
 *****************************************************************/
package wzg.com.deadthread;

/**
 * DealThreadTest(这里用一句话描述这个类的作用)
 *
 * @author wangzg
 * @version 1.0.0
 * @create 2018-01-02 下午4:48
 */
public class DealThreadTest {
    public static void main(String[] args) throws InterruptedException {
        DealThread t1 = new DealThread();
        t1.setFlag("a");
        Thread thread1 = new Thread(t1);
        thread1.start();
        Thread.sleep(100);
        t1.setFlag("b");
        Thread thread2 = new Thread(t1);
        thread2.start();
    }
}
